public class Test {
    public static void main(String[] args) {
        MyBinaryTree tree = new MyBinaryTree();
        MyBinaryTree.TreeNode root = tree.createTree();
        tree.preOrder(root);
        tree.size(root);
        System.out.println();

        //System.out.println(tree.nodeSize);
        //System.out.println(tree.size2(root));

        //tree.getLeafNodeCount1(root);

        //System.out.println(MyBinaryTree.leafSize);
        //System.out.println(tree.getLeafNodeCount2(root));

        //System.out.println(tree.getKLevelNodeCount(root,4));

        //System.out.println(tree.getHeight(root));

        System.out.println(tree.isCompleteTree(root));
    }
}
